package com.zfjt.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.zfjt.entity.ReturnBean;
import com.zfjt.utils.StringUtil;

@Controller
public class Login1Controller {
	
	private ReturnBean mReturn;

	@RequestMapping(value="Login1Controller",method = RequestMethod.POST)
	@ResponseBody
	public ReturnBean Login1(HttpSession hseesion,HttpServletRequest req,HttpServletResponse rep){
		//接收客户端发过来的参数
		String request = req.getParameter("HotelCalifornia");
		System.out.println("=====请求参数====" + request);
		mReturn = new ReturnBean();
		if (StringUtil.isNotEmpty(request)) {
			mReturn.setCode("000");
		}else{
			mReturn.setCode("002");
		}
		mReturn.setData("00004");
		mReturn.setData("00004");
		return mReturn;
	}
}
